#include "PlaceToTransition.h"

pn::PlaceToTransition::PlaceToTransition()
{
	setId("unknown-id");
}

pn::PlaceToTransition::~PlaceToTransition()
{
	
}

std::string pn::PlaceToTransition::getId()
{
	return mId;
}

void pn::PlaceToTransition::setId(const std::string& rId)
{
	if (!rId.empty()) mId.assign(rId);
	else mId = "unknown-id";
}

const pn::Place* pn::PlaceToTransition::getPlaceFrom()
{
	return mPlaceFrom;
}

void pn::PlaceToTransition::setPlaceFrom(const Place* pPlaceFrom)
{
	mPlaceFrom = pPlaceFrom;
}

const pn::Transition* pn::PlaceToTransition::getTransitionTo()
{
	return mTransitionTo;
}

void pn::PlaceToTransition::setTransitionTo(const Transition* pTransitionTo)
{
	mTransitionTo = pTransitionTo;
}
